package autoteam.ui.tabs;

import java.awt.BorderLayout;
import java.awt.Insets;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;

import autoteam.League;

public class DraftReportTab extends TabPanel
{
    private static final long serialVersionUID = 3444621641992501042L;
    
    private JTextArea log;
    
    public DraftReportTab( League currentLeague )
    {
	super( );
	
	JScrollPane logScrollPane = new JScrollPane( log );
	createLog( currentLeague );
	
	this.setName( "Draft Report" );
	this.setLayout( new BorderLayout( ) );
	this.add( logScrollPane, BorderLayout.CENTER );
    }
    
    private void createLog( League reportDoc )
    {
	log = new JTextArea( reportDoc.logDocument, null, 5, 20 );
	log.setMargin( new Insets( 5, 5, 5, 5 ) );
	log.setEditable( true );
    }

	@Override
	protected void setButtonActions(JFrame parentFrame)
	{
		// TODO Auto-generated method stub
		
	}
}
